﻿using System;
using System.Web.Security;
using DDDProject.Aspects;
using DDDProjectSample.Application.Controllers;

namespace DDDProjectSample.WebUI
{
    public partial class Default : System.Web.UI.Page
    {
        [InjectComponent]
        private ForumsController _forumsController;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //Welcome.Text = "Hello, " + Context.User.Identity.Name;

                // Retrieve forums
                RepeaterForums.DataSource = _forumsController.GetForums();
                DataBind();
            }
        }
    }
}
